package com.woniuxy.light_smart.service.imp;

import com.woniuxy.light_smart.entity.FaultLevel;
import com.woniuxy.light_smart.mapper.FaultLevelMapper;
import com.woniuxy.light_smart.service.FaultLevelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FaultLevelServiceImpl implements FaultLevelService {
    @Resource
    private FaultLevelMapper faultLevelMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return faultLevelMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(FaultLevel record) {
        return faultLevelMapper.insertSelective(record);
    }

    @Override
    public FaultLevel selectByPrimaryKey(Long id) {
        return faultLevelMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(FaultLevel record) {
        return faultLevelMapper.updateByPrimaryKeySelective(record);
    }
}
